cmake_minimum_required(VERSION 3.5)

project(example2 LANGUAGES CXX)

add_library(message-objs
  OBJECT 
  message.h 
  message.cpp
)


add_library(message-shader
  SHARED
  $<TARGET_OBJECTS:message-objs>
)

add_library(message-static
  STATIC
  $<TARGET_OBJECTS:message-objs>
)


add_executable(helloCmake main.cpp)

target_link_libraries(helloCmake message-static)